<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">

	<p:dialog id="phieuChiDialogId" header="Chi tiết phiếu chi" widgetVar="phieuChiDialog" showEffect="fade"
		hideEffect="fade" resizable="true" modal="true" appendToBody="true" maximizable="true" width="500px">
		<h:form id="phieuChiDetailFormId">
			<h:panelGrid id="phieuChiPanelGridId" columns="2" cellpadding="4">
				<f:facet name="header">
					<p:messages autoUpdate="true" />
				</f:facet>

				<h:outputText value="Số tiền" />
				<p:inputText value="#{phieuChiView.editedEntity.soTien}" style="font-weight:bold" />

				<h:outputText value="Thông tin" />
				<p:inputTextarea value="#{phieuChiView.editedEntity.thongTin}" style="font-weight:bold" />

				<h:outputText value="Mã nhân viên" />
				<p:inputText value="#{phieuChiView.editedEntity.maNhanVien}" style="font-weight:bold" />

				<f:facet name="footer">
					<p:commandButton icon="ui-icon-disk" value="Save" action="#{phieuChiView.saveOrUpdate}" process="@form"
						update=":phieuChiListFormId:phieuChiDataTableId, @form"
						oncomplete="if (!args.validationFailed) phieuChiDialog.hide()">
					</p:commandButton>
					<p:commandButton icon="ui-icon-cancel" value="Cancel" onclick="phieuChiDialog.hide()" />
				</f:facet>
			</h:panelGrid>
		</h:form>
	</p:dialog>

</ui:composition>